package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.victor.entity.Banner;

@Mapper
public interface BannerDao{

	/**
	 * 获取所有banner
	 * 
	 * @return
	 */
	@Select({ "select * from banner" })
	List<Banner> getAll();

	/**
	 * 
	 * @param bid
	 * @param filepath
	 * @return
	 */
//	@Update({ "update banner set banner_path=#{filepath} where id=#{id}" })
	int update(Banner banner);

}
